package com.hxminer.hxwebs.exceptions;

import com.hxminer.hxwebs.enmus.ResultEnum;

/**
 * Author YRG
 * Created by on 2018/5/8.
 * Describe
 */
public class UserException extends RuntimeException {

    private Integer code;

    public UserException(ResultEnum resultEnum) {

        super(resultEnum.getMsg());
        this.code = resultEnum.getCode();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
